package br.com.ordersys.framework.xml;

import java.util.HashMap;
import java.util.Map;

import javax.xml.bind.annotation.XmlRootElement;

public class MapMarshallTest {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {
		T t = new T();
		
		t.x = 13;
		t.m.put("el2", "vlr.2");
		t.m.put("el3", "vlr.3");
		
		Object2XMLMarshaller om = new Object2XMLMarshaller();
		om.writeTo(t, System.out);
	}
	
	@XmlRootElement(name="teste")
	public static class T{
		private int x;
		private Map m = new HashMap();
	}

}
